Make hook status printing configurable with delay#9641
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9641 +/- ##
==========================================
- Coverage 42.17% 42.14% -0.04%
==========================================
Files 583 583
Lines 77160 77220 +60
==========================================
Hits 32541 32541
- Misses 40616 40676 +60
Partials 4003 4003
Continue to review full report at Codecov.
|
guillep2k
left a comment
There was a problem hiding this comment.
I've written a bunch of comments and suggestions, but I'm not sure this is the right approach. I realize you want to be faithful to the previous state, where a dot was printed for each commit that has been checked. But maybe it would be much easier if we'd just print a dot for each second that has passed after the initial delay (with no goroutines or string builders).
|
I've moved to a wrapped writer implementation with a configurable delay. |
|
I stopped and restarted the build which seems blocked. |
|
@sapk yup that was my fault. The documentation and example for New timer is particularly bad. I even knew about this problem but forgot about it. |
|
Make lg-tm work |
* Delay printing hook statuses until after 1 second * Move to a 5s delay, wrapped writer structure and add config * Update cmd/hook.go * Apply suggestions from code review * Update cmd/hook.go Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Delay printing hook statuses until after 1 second * Move to a 5s delay, wrapped writer structure and add config * Update cmd/hook.go * Apply suggestions from code review * Update cmd/hook.go Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Add 2 configuration options to control printing of push hook status with a configurable delay.
Fix #9610